Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 3 Feb 2011 14:02:15 +0000 (23:02 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 3 Feb 2011 14:02:15 +0000 (23:02 +0900)
gtk/gtkcolorbutton.c

index 3fd11cbcb5557800b5f8bc025a370da2c318cd5d..6084ee774dd55b9d76e1305d018e306cef3bb4d0 100644 (file)
@@ -786,6 +786,8 @@ gtk_color_button_set_rgba (GtkColorButton *color_button,
 
   color_button->priv->rgba = *rgba;
 
+  gtk_widget_queue_draw (color_button->priv->draw_area);
+
   g_object_notify (G_OBJECT (color_button), "rgba");
 }